package com.example.springboot.service;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Products;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IProductsService {
    List<Products> list();

    PageInfo<Products> page(BaseRequest baseRequest);

    void save(Products products);

    Products getById(Integer id);

    void update(Products products);

    void deleteById(Integer id);

}
